#ifndef AES_H
#define AES_H

#include <stdint.h>
#include <stddef.h>

struct AES_ctx {
    uint8_t RoundKey[176];
    uint8_t Iv[16];
};

void AES_init_ctx_iv(struct AES_ctx* ctx, const uint8_t* key, const uint8_t* iv);
void AES_CBC_encrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, size_t length);
void AES_CBC_decrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, size_t length);

#endif // AES_H
